package org.graduates.webapp.actions.course;

import org.graduates.webapp.actions.BaseAction;
import org.projects.graduates.domain.TimeTable;

public class HomeworkViewAction extends BaseAction {

	private static final long serialVersionUID = 3364739762446727622L;

	private long tid = 0L;

	private TimeTable tt;

	public String execute() {

		if (0L == tid) {
			return INPUT;
		}

		tt = TimeTable.get(TimeTable.class, tid);

		if (null == tt) {
			return INPUT;
		}

		return SUCCESS;
	}

	public long getTid() {
		return tid;
	}

	public void setTid(long tid) {
		this.tid = tid;
	}

	public TimeTable getTt() {
		return tt;
	}

	public void setTt(TimeTable tt) {
		this.tt = tt;
	}

}
